package com.xmut.rc.service.impl;

import com.xmut.rc.entity.CarInfo;
import com.xmut.rc.mapper.CarInfoMapper;
import com.xmut.rc.service.CarInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 车辆信息表 服务实现类
 * </p>
 *
 * @author 小宋
 * @since 2022-06-25
 */
@Service
public class CarInfoServiceImpl extends ServiceImpl<CarInfoMapper, CarInfo> implements CarInfoService {

    @Override
    public boolean editStatus(String carId, String status) {
        CarInfo car = getById(carId);
        car.setStatus(status);
        return updateById(car);
    }
}
